package com.xgzit.xgzmall.auth.feign;

import com.xgzit.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author xgz
 * @Date 2021-05-31 7:39
 */
@FeignClient("xgzmall-third-party")
public interface ThirdPartFeignService {

    /**
    * 远程调用，进行验证码发送
    * @param phoneNumbers:
    * @param templateParam:
    * @return com.xgzit.common.utils.R
    */
    @GetMapping("/sms/sendMessage")
    R sendMessage(@RequestParam("phoneNumbers") String phoneNumbers,
                  @RequestParam("templateParam") String templateParam) throws Exception;
}
